SELECT t.* FROM `c1_entity_log` t
WHERE t.`ENTITY_ID` = :entityId
ORDER BY t.`CREATED_DATE` DESC
LIMIT 0, <#if topN??>:topN<#else>10</#if>
